<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
<link rel="stylesheet" href="${staticPath}/lib/ztree/3.5/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script src="${staticPath}/js/jquery-dialog.js" type="text/javascript"></script>
<script type="text/javascript" src="${staticPath}/js/intent/intAssociated_list.js"></script>
<script src="${staticPath}/lib/ztree/3.5/js/jquery.ztree.all-3.5.js" type="text/javascript"></script>
<script type="text/javascript" src="${staticPath}/js/contract_list.js"></script>
<script type="text/javascript">
var navId ='${navId}'
var storeId1='${intSalesno.storeId}';
var floorId1 ='${intSalesno.floorId}';
</script>
</head>
<body>

	<form:form id="intSalesnoForm" name="listForm" modelAttribute="dict" method="post" class="form-inline" role="form">
		<ol class="breadcrumb map_1">
				<li><a href="${contextPath}/index">首页</a></li>
				<li><a href="${contextPath}/biz/intent/intAssociated/list?navId=${navId}">招商合约</a></li>
				<li class="active">先申号意向</li>
				</ol>
				<input type="hidden" id="contractType" value="intSalesno">
	<div class="o-l-search-builder f_1">
	    <div id="statement-search-builder" class="collapse" style="height:auto;">
    			<div class="f_2">
	            		<div class="form-group col-sm-6">
	             			<label for="createBy" class="col-sm-3 control-label f_4">创建人：</label>
	             			<div class="col-sm-9 f_6">
	             				<div class="input-group">
	             		 			<input type="hidden" id="createById" maxlength="200" name="createBy" value="${intSalesno.createBy}" readonly="true" class="f_5 required" />
	                     			<input type="text" class="f_5" id="createBy"  placeholder="合同创建人">
	                     			<span class="input-group-addon f_time"><a onclick="cleanCreateBy()" href="javascript:void"><i class="glyphicon glyphicon-remove"></i></a></span>
	                     			<span class="input-group-btn">
									<button class="btn btn-default btn_3" id="userDialogMultiple"
									data-dialog="dialog" data-multiple="true"
									data-idField="createById" data-nameField="createBy"
									data-authType="USER" type="button">选择</button>
									</span>
	                     		</div>
	                     </div>
	               		</div>
	               	   <div class="form-group col-sm-6">
	                      <label for="inputtext3" class="col-sm-3 control-label f_4">区域：</label>
	                       <div class="col-sm-9 f_6">
	                       	<div class="input-group">
	                       		<input type="hidden" id="areaId"  name="areaId" value="${intSalesno.areaId}"/> 
								<input type="text" class="f_5" id="area" readonly="readonly" name="area" value="${intSalesno.area}">
								<span class="input-group-addon f_time"><a onclick="cleanArea()" href="javascript:void"><i class="glyphicon glyphicon-remove"></i></a></span>
								<span class="input-group-btn">
									<button class="btn btn-default btn_3" id="areaBtn"
									 type="button">选择</button>
									</span>
							</div>
						 </div>
	            	</div>
	             </div>
	            <div class="f_3">
	                 <div class="form-group col-sm-6">
	                      <label for="store" class="col-sm-3 control-label f_4">门店名：</label>
	                      <div class="col-sm-9 f_6">
	                        <select  class="f_5" id="storeId" name="storeId">
	                        	<option value="">---请选择---</option>
	                        	<c:if test="${not empty intSalesno.storeId}">
	                        		<option value="${intSalesno.storeId}" selected="selected" >${intSalesno.store}</option>
	                        	</c:if>
	                        </select>
	                        <input type="hidden"  id="store" name="store" />
	                      </div>
	                  </div>
	                  <div class="form-group col-sm-6">
	                      <label for="floorId" class="col-sm-3 control-label f_7">楼层：</label>
	                      <div class="col-sm-9 f_6">
	                        <select type="email" class="f_5" id="floorId" name="floorId">
	                        	<option value="">---请选择---</option>
	                        	<c:if test="${not empty intSalesno.floorId}">
	                        		<option value="${intSalesno.floorId}" selected="selected">${intSalesno.floor}</option>
	                        	</c:if>
	                        </select>
	                        <input type="hidden"  id="floor" name="floor"/>
	                      </div>
	                  </div>
	             </div>	
	         
		</div>
		<div class="o-l-chevron-down"><a href="#" class="btn btn-default collapsed" data-toggle="collapse" data-target="#statement-search-builder" id="chevronDownBtn" role="button"><span id="glyphiconspan" class="glyphicon glyphicon-chevron-down"></span></a></div>
		 <div class="f_8">
	              <div class="f_2">
	                  <div class="col-sm-4 f_6">
	                       <input id="contractNo" type="text" name="intentNo" placeholder="提报意向编码" class="f_5" value="${intSalesno.intentNo}"/>
	                  </div>
	                  <button type="button" id="queryBtn" class="btn btn-warning btn_1">查&nbsp&nbsp;询</button>
	                  <button type="button" onclick="cleanAll()" class="btn btn-warning btn_1">重&nbsp&nbsp;置</button>
	             </div>
	         </div>
	   
    </div>
    	<div class="o-l-search-builder f_1">
    		<shiro:hasPermission name="com.maoye.ossp.biz.contract.intent.IntSalesno:delete">
			<a class="btn btn-danger btn_3 btn_right" onclick="Oosp_DelChked('${contextPath}/biz/intent/intSalesno/ids/delete?navId=${navId}&pageNo=${page.pageNo}&contractType=${contractType}','table1','ids')">删除</a>
			</shiro:hasPermission>
			<%-- <button class="btn btn-info btn_3 btn_right" type="button"  onclick="funform('${contextPath}/biz/intent/intSalesno/add','_self');">新建</button> --%>
		</div>
		<tags:message content="${message}"/>
		<div class="o-l-search-builder f_9">
		<table class="table table-striped table-hover o-l-table" id="table1">
			<thead class="t_1">
				<tr>
					<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
					<th>意向单号</th>
					<th>供应商名称</th>
					<th>门店</th>
					<th>状态</th>
					<th>意向类型</th>
					<th>创建人</th> 
					<th>创建时间</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${page.list}" var="intSalesno">
					<tr data-herf="${contextPath}/biz/intent/intSalesno/${intSalesno.id}/view?navId=${navId}&pageNo=${page.pageNo}&contractType=${contractType}" data-target="_self">
					
						<td class="o-l-tab-ckb">
							<input type="checkbox" data-ckb-id="${intSalesno.id}">
						</td>
						<td>${intSalesno.intentNo}</td>
						<td>${intSalesno.supplierName}</td>
						<td>${intSalesno.store}</td>
						<td><ossp:value dictType="INTENT_STATUS" key="${intSalesno.status}"></ossp:value></td>
						<td><ossp:value dictType="CONTRACT_TYPE" key="${intSalesno.intAssociated.contractType}"></ossp:value></td>
						<td>${intSalesno.createName}</td> 
						<td><fmt:formatDate value="${intSalesno.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					</tr>
				</c:forEach>
		</tbody>
		</table>
	</div>
	<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>	
	<script type="text/javascript" src="${staticPath}/js/list.js"></script>

	
	</form:form>
</body>
</html>